﻿using System;

using BrightSword.Feber.Samples;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using Tests.BrightSword.Feber.TestClasses;

namespace Tests.BrightSword.Feber
{
    [TestClass]
    public class FastComparerTests
    {
        [TestMethod]
        public void TestAllPropertiesAreEqualWith()
        {
            var left = new ClassA
                       {
                           Integer = 42,
                           DateTime = new DateTime(2009,
                                                   2,
                                                   7),
                           String = "Black Saturday"
                       };

            var right = new ClassA
                        {
                            Integer = 42,
                            DateTime = new DateTime(2009,
                                                    2,
                                                    7),
                            String = "Black " + "Saturday"
                        };

            Assert.IsTrue(left.AllPropertiesAreEqualWith(right));
        }
    }
}